package benchMark;

import anaydis.sort.gui.SorterListener;

/**
 * Created by IntelliJ IDEA.
 * User: Keevu
 * Date: 24/08/11
 * Time: 15:47
 * To change this template use File | Settings | File Templates.
 */
public class BenchMarkImpl implements SorterListener {
    private int comparisons;
    private int swaps;
    public void greater(int i, int i1) {
        comparisons++;

    }

    public void equals(int i, int i1) {
        comparisons++;
    }

    public void swap(int i, int i1) {
        swaps++;
            }

    public void box(int i, int i1) {
        comparisons++;
    }

    public void copy(int i, int i1, boolean b) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

  public int getComparisons() {
        return comparisons;
    }

    public int getSwaps() {
        return swaps;
    }
}
